<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.jaxplat.commons.Row"%>
<%@page import="com.jaxplat.commons.RowImpl"%>
<%@page import="com.rs.commons.RsConstant"%>
<%
    String contextPath = request.getContextPath();
			if (null == request.getAttribute("dsInfo")
					|| null == request.getAttribute("orderInfo")) {
				Row msg = new RowImpl();
				msg.addColumn("message", "您提交内容出错了。请按流程提交!");
				request.getRequestDispatcher("wap/msg.jsp").forward(request,
						response);
			}
			Row dsInfo = new RowImpl();
			Row orderInfo = new RowImpl();

			dsInfo = (Row) request.getAttribute("dsInfo");
			orderInfo = (Row) request.getAttribute("orderInfo");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta content="预约挂号,预约诊疗,门诊预约,网上医院,网上挂号" name="Keywords">
		<meta content="预约挂号平台提供各大三甲医院知名专家的网上预约就医服务。同时提供就医咨询、导医陪诊、专家会诊、住院转院、安排手术等服务" name="description">
		<title>预约管理-云南移动无线城市</title>
		<link rel="stylesheet" type="text/css" href="<%=contextPath%>/css2/style.css" />
		<script type="text/javascript" src="<%=contextPath%>/js/jquery-easyui-1.3/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="<%=contextPath %>/js/common.js"></script>
		<script type="text/javascript">
		function submitForm() 
		{
			$("#form1").submit();
		}
		</script>

<!--[if IE 6]>
 <style type="text/css">
 .w942m {
	width:942px;
	margin:0 auto;
	margin-top:150px;
}
.main_left .main_box_title {
	background: url("../images/h4bg.png") no-repeat scroll left top transparent;
	height:43px;
	margin-left:-10px;
	position:absolute;
	top:10px;
}
 </style>
<![endif]-->

<!--[if IE 7]>
 <style type="text/css">
 .w942m {
	width:942px;
	margin:0 auto;
	margin-top:150px;
}
.main_left .main_box_title {
	background: url("../images/h4bg.png") no-repeat scroll left top transparent;
	height:43px;
	margin-left:-10px;
	position:absolute;
	top:10px;
}
 </style>
<![endif]-->

	</head>
	<body>
		<%=request.getSession().getAttribute("headerContentWeb")%>
		<div class="guahao">
			<!--start header-->
			<%@ include file="head.jsp"%>
			<!--end header-->
			<div class="clear mb8"></div>
			<!--start main-->
			<form id="form1" name="form1" method="post" action="<%=request.getContextPath()%>/web2/reserve.do?method=commit&portaltype=0&version=&areacode=<%=session.getAttribute("areacode")%>">
				<div class="main w942m">
					<div class="main_left2 fl w150">
						<div class="main_box">
							<div class="main_box_title">
								<div class="titleleft fl"></div>
								<div class="right_titlemain fl">
									<h4 class="h4">
										预约管理
									</h4>
								</div>
								<div class="titleright fl"></div>
							</div>
							<div class="right_main_box_cont">
								<!--navlist开始-->
								<ul class="navlist">
									<li>
										<a href="<%=contextPath%>/web2/reserveManageAction.do?method=reserverOrderList&flag=1">未支付预约</a>
									</li>
									<li>
										<a href="<%=contextPath%>/web2/reserveManageAction.do?method=reserverOrderList&flag=2">我的预约</a>
									</li>
									<li>
										<a href="<%=contextPath%>/web2/reserveManageAction.do?method=reserverOrderList&flag=3">历史预约</a>
									</li>
									<li>
										<a href="<%=contextPath%>/web2/reserveManageAction.do?method=reserverOrderList&flag=4">常用联系人</a>
									</li>
								</ul>
								<!--navlist结束-->
							</div>
							<!--end left_main_box_cont-->
							<div class="right_box_bottom mb8"></div>
						</div>
						<!--end main_box-->
					</div>
					<!--end main_left-->
					<div class="main_right2 fl w780">
						<div class="main_box_list">
							<div class="once_top"></div>
							<div class="right_main_box_cont">
								<div class="box_keylist">
									<div class="step">
										<span>选择</span><span>→</span><span>填写信息</span><span>→</span><span class="on">支付</span><span>→</span><span>完成预约</span>
									</div>
									<div class="bc">
										<div class="apps_titleName">
											<span class="apps_titleLeft">预约基本信息</span>
										</div>
										<table border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;" width="100%"
											class="infro2_table">
											<tr>
												<td width="90px" class="textR">
													专家名称：
												</td>
												<td width="160px">
													<%=dsInfo.getString("doctor_name")%>
													<input id="ds_id" name="ds_id" type="hidden" value="<%=dsInfo.getLong("ds_id")%>" />
												</td>
												<td width="90px" class="textR">
													专家职称：
												</td>
												<td width="160px"><%=dsInfo.getString("pro_title_name")%></td>
												<td width="90px" class="textR">
													预约时间：
												</td>
												<td><%=com.jaxplat.util.DateUtils.parseDate(dsInfo
							.getDate("sc_date"))%>
													&nbsp;<%=dsInfo.getString("batch_name")%></td>
											</tr>
											<tr>
												<td class="textR">
													医院名称：
												</td>
												<td><%=dsInfo.getString("hos_name")%></td>
												<td class="textR">
													所属科室：
												</td>
												<td colspan="3"><%=dsInfo.getString("sec_name")%></td>
											</tr>
										</table>
										<div class="apps_titleName">
											<span class="apps_titleLeft">支付信息</span>
										</div>
										<table border="0" cellspacing="0" cellpadding="0" width="100%" class="infro2_table">
											<tr>
												<td width="90px" class="textR">
													支付方式：
												</td>
												<td width="100px">
													<%
													    if ("1".equals(orderInfo.getString("pay_type"))) {
																	out.print("手机支付");
																}
													%>
													<input name="pay_type" type="hidden" value="<%=orderInfo.getString("pay_type")%>" />
												</td>
												<td width="90px" class="textR">
													支付手机号：
												</td>
												<td width="100px" class="textR">
													<%=orderInfo.getString("mobile_no")%>
													<input name="mobile_no" type="hidden" value="<%=orderInfo.getString("mobile_no")%>" />
												</td>
												<td width="90px" class="textR">
													挂号费：
												</td>
												<td class="red">
													<%=com.rs.util.Utils.formatMoney(RsConstant.DOCTOR_FEE
							.getDouble(dsInfo.getString("pro_title")), "0.00")%>
													元
												</td>
												<td width="90px" class="textR">
													信息费：
												</td>
												<td class="red">
													<%=com.rs.util.Utils.formatMoney(RsConstant.RS_INFO_SERVICE_FEE, "0.00")%>元
												</td>
											</tr>
										</table>
										<div class="apps_titleName">
											<span class="apps_titleLeft">患者基本信息</span>
										</div>
										<table border="0" cellspacing="0" cellpadding="0" width="100%" class="infro2_table">
											<tr>
												<td width="90px" class="textR">
													患者姓名：
												</td>
												<td width="160px">
													<%=orderInfo.getString("applicant_name")%>
													<input name="applicant_name" type="hidden" value="<%=orderInfo.getString("applicant_name")%>" />
												</td>
												<td width="90px" class="textR">
													身份证号：
												</td>
												<td width="160px">
													<%=orderInfo.getString("id_no")%>
													<input name="id_no" type="hidden" value="<%=orderInfo.getString("id_no")%>" />
												</td>
												<td width="90px" class="textR">
													性别：
												</td>
												<td>
													<%
													    if ("m".equals(orderInfo.getString("gender"))) {
																	out.print("男");
																} else {
																	out.print("女");
																}
													%>
													 <input name="gender" type="hidden" value="<%=orderInfo.getString("gender") %>" />
												</td>
											</tr>
											<tr>
												<td class="textR">
													出生日期：
												</td>
												<td>
													<%=orderInfo.getString("birth_date") %>
												</td>
												<td class="textR">
													住址：
												</td>
												<td colspan="3">
												<%=orderInfo.getString("applicant_addr")%>
												<input name="applicant_addr" type="hidden" value="<%=orderInfo.getString("applicant_addr") %>" />
												</td>
											</tr>
										</table>
										<div class="btn_div">
											<a href="javascript:void(0)" onclick="submitForm()" class="btn_blue">确认预约</a>&nbsp;&nbsp;
											<a href="javascript:void(0)" onclick="history.go(-1)" class="btn_blue">返回</a>
										</div>
										<div class="clear"></div>
									</div>
									<!--end bc-->
								</div>
								<!--end inbox-->
							</div>
							<!--end right_main_box_cont-->
							<div class="left_box_bottom mb8"></div>
						</div>
						<!--end main_box-->
					</div>
					<!--end main_right-->
				</div>
			</form>
			<!--end main_left-->
		</div>
		<!--end main-->
		<div class="clear"></div>
		</div>
	</body>
</html>